/**
 * @Auto generation code
 * Pay Controller
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * 余额支付 - GET
 */
export const payInBalance = async (, {// path params
		id   // 订单编号  
	
}, loading) => {
	return await request.get('/pay/balance/${id}', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 现金支付 - GET
 */
export const getWechatPrepayCash = async (, {// path params
		id   // 订单编码  
	
}, loading) => {
	return await request.get('/pay/cash/${id}', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 浦发支付 - GET
 */
export const spdbPay = async (, {// path params
		id   // 订单编号  
	
}, loading) => {
	return await request.get('/pay/spdb/${id}', {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 第三方支付prepay，支持微信网页支付、微信APP支付以及支付宝支付 - POST
 */
export const getThirdPrepayDirect = async (loading) => {
	return await request.post('/pay/third/prepay', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 第三方支付prepay，支持微信网页支付、微信APP支付以及支付宝支付 - POST
 */
export const getThirdPrepayDirect = async (loading) => {
	return await request.post('/pay/third/prepay/approve', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 银联支付 - GET
 */
export const getWechatPrepayUnionpay = async (, {// path params
		id   // 订单编码  
	
}, loading) => {
	return await request.get('/pay/unionpay/${id}', {
		
	}, loading)
}

